
#include "OptWidget.h"

ManipulatorOpts::ManipulatorOpts(QWidget *parent) : QWidget(parent) {

    //port = new SerialWidget();
    // setFixedSize(200,120);
    this->window()->setWindowTitle("Manipulator Options");



    // creating text boxes to enter step sizes
    stepSizeA = new QTextEdit(this);
    stepSizeB = new QTextEdit(this);
    stepSizeC = new QTextEdit(this);
    stepSizeA->setGeometry(100,0,100,50);

    // Labels
    sizeA = new QLabel();
    sizeB = new QLabel();
    sizeC = new QLabel();

    sizeA->setText("Step Size A");
    sizeB->setText("Step Size B");
    sizeC->setText("Step Size C");

    // creating grid layout
    gridLayout = new QGridLayout(this);
    gridLayout->setGeometry(QRect(0,0,600,300));

    // adding widgets to grid layout
    gridLayout->addWidget(sizeA, 0, 0);
    gridLayout->addWidget(sizeB, 1, 0);
    gridLayout->addWidget(sizeC, 2, 0);

    // gridLayout->addWidget(stepSizeA, 0, 1);
    // gridLayout->addWidget(stepSizeB, 1, 1);
    // gridLayout->addWidget(stepSizeC, 2, 1);
}

ManipulatorOpts::~ManipulatorOpts()
{

}

void ManipulatorOpts::open()
{
    this->show();
}
